package com.iphanta.community.common;

/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 3/8/22 4:48 PM
 */
public class UserUtils {

    private static final ThreadLocal<String> USER_ID = new ThreadLocal<>();

    public static void setUid(String uid) {
        USER_ID.set(uid);
    }

    public static String getUid() {
        return  USER_ID.get();
    }

    public static void remove() {
        USER_ID.remove();
    }

}
